package com.example.demo.entity.bean.dataSource1;

import com.example.demo.entity.dataSource1.GeographyEntity;
import org.springframework.beans.BeanUtils;

/**
 * Created by Wen Gao on 2018/7/17.
 */
public class GeographyBean extends GeographyEntity {

    public static GeographyBean adapt(GeographyEntity geographyEntity) {
        if(geographyEntity==null) {
            return null;
        }
        GeographyBean geographyBean = new GeographyBean();
        BeanUtils.copyProperties(geographyEntity, geographyBean);
        return geographyBean;
    }
}
